<div class="documentsContent">
<?php foreach ($data as $key => $value){ 
$name = isset($value->ln->name) ? $value->ln->name : $value->name;
?>
	<div class="documentsWrap d_b">
		<div class="documentWrap-content">
			<a href="<?php echo $value->file;?>">
				<img src="/images/files/<?php echo Yii::app()->file->set(Yii::getPathOfAlias('webroot').$value->file, true)->extension;?>.png"/>
				<span><?php echo $name;?></span>
			</a>
			<span>(<?php echo Yii::app()->file->set(Yii::getPathOfAlias('webroot').$value->file, true)->size;?>)</span>
		</div>
		<div class="documentWrap-btn">
			<a href="<?php echo $value->file;?>" class="d_b"><?php echo Yii::t('main','Скачать') ?></a>
		</div>
	</div>
<?php }	?>
</div>